package com.hiwan.wechat.enumeration;

public enum CorpAppInfoEnum {
	Contacts("0", "miD_zMVulG_OAZVsYLoANjem0UQbEWFTx33deyPTBbo", "通讯录"),
	
	OftenTool("42", "gEMqukTE8DRE18Zt4GU_-RZFUg4aPyTKOze65asItFA", "常用工具"),
	UnionActivity("43", "KM9xtmpk-Q_BpZe_iask551xkvuJDrUjovJuAULYY5M", "工会活动"),
	MessagePub("44", "p1skC84mWZTh1ZYcqBI-GfcYASQZ3dSBCGQF5KLXZGM", "信息发布"),
	RateCollect("45", "U1Z2Vhte5OL4jS_bmcHYTHgZfGec1zHagGXD9acL9pk", "利率采集"),
	HelpFeedBack("46", "MxgvzN_KIiZ2XneY6dPaxu9D8ECumaDVEFRFRNgEBrY", "帮助与反馈"),
	Meeting("47", "Srz6o_7i3moiG7DiHtNOyNA5o-ZQhLgL1rCDFYFZBG8", "会议管理"),
	OaFacility("58", "kRtVC--Lt7Cv4P83s-m467cpvXuJ7VrsqrkwKzAcZ4w", "OA设备管理"),
	MealTicket("49", "4D59j-7pOSJYScAaWcTwwFKfsmMUB81sQIDzorL46V0", "食堂餐券-省行业务部"),
	

	ProductMarket("59", "RQoFS9ISMeFw1HFkptOGVf-TiP7t3xCKyQVbGJv8_XU", "产品超市"),
	BusiHandle("60", "TUEFvFCDQMmoiYWfV_qTFNU6qzpPeJtSst3r6My5p4k", "业务处理"),
	ProductPublish("61", "6OfCAzqohpf3Wugjeyw1VZqsoDCoZ5nbN0vjTI5eFg8", "产品推广"),

	ProductMarketTest("1000003", "YsYx12fHoGXhPndMVeDlDgVGP7w5i7qCSI-9TfGOoR4", "产品超市test"),
	BusiHandleTest("1000002", "D9cKiYFNZwvrWJiVpwpS9i15y7QRfQZ_9c1sJZVOb00", "业务处理test");
	
	private final String agentid;
	private final String secret;
	private final String name;

	private CorpAppInfoEnum(String agentid, String secret, String name) {
		this.agentid = agentid;
		this.secret = secret;
		this.name = name;
	}

    public static CorpAppInfoEnum parse(String agentid) {
        for (CorpAppInfoEnum s : CorpAppInfoEnum.values()) {
            if (s.agentid.equals(agentid)) {
                return s;
            }
        }
        return null;
    }
    
	public String getAgentid() {
		return agentid;
	}

	public String getSecret() {
		return secret;
	}

	public String getName() {
		return name;
	}
}
